/*
 * @Author: lwHao
 * @Date: 2020-07-18 17:45:51
 * @LastEditors: lwHao
 * @LastEditTime: 2020-07-18 23:59:17
 */ 
const { merge } = require('webpack-merge')
const common = require('./webpack.common')
const { CleanWebpackPlugin } = require('clean-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
module.exports = merge(common,{
  mode: 'production',
  plugins: [
    new CleanWebpackPlugin(),
    // 开发阶段最好不要使用这个插件
    new CopyWebpackPlugin({
      patterns: [
        {
          from: 'public',
        },
      ]
    }),
  ]
})